package com.xukang.demo.feign;

import com.xukang.demo.controller.BaseController;
import com.xukang.demo.entity.ProjectInfo;
import org.springframework.stereotype.Component;

@Component
public class ServiceFallback extends BaseController implements ApiFeign2 {


    @Override
    public ProjectInfo getInfo() {
        ProjectInfo p = new ProjectInfo();
        p.setTitle("以类形式服务降级了，哈哈哈，线程池名称(隔离的池子)："+Thread.currentThread().getName());
        return p;
    }

    @Override
    public ProjectInfo getInfoTimeout() {
        ProjectInfo p = new ProjectInfo();
        p.setTitle("以类形式服务降级了，哈哈哈，线程池名称(隔离的池子)："+Thread.currentThread().getName());
        return p;
    }
}
